using System;
using System.ComponentModel.DataAnnotations;

namespace RBDD.Embol.AccesoDatos.Entidades
{
 public partial class Solicitud
 {
     public Solicitud()
     {
     }
     #region foreign Keys

     public int CanalId_FK {get;set;}
     private Canal CanalId_obj ;
     public virtual Canal Canal
      {
          get { return CanalId_obj; }
          set {
                CanalId_obj = value;
                if (CanalId_obj != null) CanalId_FK = CanalId_obj.Id; 
          }
      }

     public int TipoServicioId_FK {get;set;}
     private TipoServicio TipoServicioId_obj ;
     public virtual TipoServicio TipoServicio
      {
          get { return TipoServicioId_obj; }
          set {
                TipoServicioId_obj = value;
                if (TipoServicioId_obj != null) TipoServicioId_FK = TipoServicioId_obj.Id; 
          }
      }
     #endregion
     public virtual int   Id { get; set;}

     [StringLength(50, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Nombre")]
     public virtual string   Nombre { get; set;}

     [StringLength(100, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Descripcion")]
     public virtual string   Descripcion { get; set;}

     [StringLength(50, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Comentarios")]
     public virtual string   Comentarios { get; set;}

     [StringLength(100, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "ObservacionCliente")]
     public virtual string   ObservacionCliente { get; set;}
 }
}

